home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / BYACC__ / STATE.H < prev    next >
Text File  |  1989-11-19  |  838b  |  51 lines

  1. #ifndef STATE
  2. #define STATE
  3.  
  4. typedef
  5.   struct core
  6.     {
  7.       struct core *next;
  8.       struct core *link;
  9.       short number;
  10.       short accessing_symbol;
  11.       short nitems;
  12.       short items[1];
  13.     }
  14.   core;
  15.  
  16. typedef
  17.   struct shifts
  18.     {
  19.       struct shifts *next;
  20.       short number;
  21.       short nshifts;
  22.       short shifts[1];
  23.     }
  24.   shifts;
  25.  
  26. typedef
  27.   struct reductions
  28.     {
  29.       struct reductions *next;
  30.       short number;
  31.       short nreds;
  32.       short rules[1];
  33.     }
  34.   reductions;
  35.  
  36.  
  37. extern int nstates;
  38. extern int final_state;
  39. extern core *first_state;
  40. extern shifts *first_shift;
  41. extern reductions *first_reduction;
  42. extern short *accessing_symbol;
  43. extern core **state_table;
  44. extern shifts **shift_table;
  45. extern reductions **reduction_table;
  46. extern unsigned *LA;
  47. extern short *LAruleno;
  48. extern short *lookaheads;
  49.  
  50. #endif
  51.